<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>练习 - 跑动的侠客</title>
  <style>
    body {
      padding: 0 40px;
      color: #333;
    }

    .gif {
      width: 140px;
      height: 140px;
      background-image: url(./bg.png);

      animation: runner 1s steps(11) infinite;
    }

    @keyframes runner {
      from {
        background-position: 0;
      }

      to {
        background-position: -1540px;
      }
    }
  </style>
</head>
<body>
  <h3>跑动的侠客</h3>
  <div class="gif"></div>
</body>
</html>